import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routes = [
	{
		path:'/',
		meta: {isAuth: true},
		component: resolve => require(['page/index'], resolve),
		children: [
			//系统管理
			{
				path: 'systemManage',
				meta: {isAuth: true},
				component: resolve => require(['page/systemManage'])
			}
		]
	},
	{
	    path: '/login',
	    component: resolve => require(['page/login'], resolve)
	},
	{
	    path: '/findpassword',
	    component: resolve => require(['page/findpassword'], resolve)
	}
]

export default new Router({
  mode: 'history',
  routes
})
